package com.wyh.domain.po.feemanagementpo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 资源表
 * </p>
 *
 * @author ggt
 * @since 2024-05-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("buildingunits")
@ApiModel(description = "具体楼栋资源表")
public class BuildingUnit implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "楼栋资源id")
    private Integer id;

    /**
     * 资源父级
     */
    @ApiModelProperty(value = "楼栋资源父级id")
    private Integer parentid;

    /**
     * 资源名称
     */
    @ApiModelProperty(value = "楼栋资源名称")
    private String name;

    /**
     * 资源类型，0组团，1楼栋，2单元，3车库，4公共区域
     */
    @ApiModelProperty(value = "楼栋资源类型，0组团，1楼栋，2单元，3车库，4公共区域")
    private Integer type;

    /**
     * 资源业态
     */
    @ApiModelProperty(value = "楼栋资源业态")
    private String formats;

    /**
     * Y与project中id关联,N与自己表id关联
     */
    @ApiModelProperty(value = "关联类型")
    private String isconnected;

    /**
     * 资源状态
     */
    @ApiModelProperty(value = "楼栋资源状态")
    private Integer state;


    /**
     * 楼栋下的楼层集合
     */
    @TableField(exist = false)
    @ApiModelProperty(value = "楼栋下的楼层")
    private List<Layeres> layeresList;


}
